package com.db.person.service;

import com.db.person.bean.Dept;
import com.db.person.mapper.DeptMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl implements IDeptService{

    @Autowired
    private DeptMapper deptMapper;

    @Override
    public List<Dept> getAll() {
        return deptMapper.getAll();
    }

    @Override
    public void insertOne(Dept dept) {
        deptMapper.insertOne(dept);
    }

    @Override
    public void setSomeById(Dept dept) {
        deptMapper.setSomeById(dept);
    }
}
